package com.zyong.design.pattern.facade.case2;

/**
 * 爆米花
 * @program: zyong-design-pattern
 * @ClassName: Popcorn
 * @author: zyong
 * @create: 2024-04-07 23:20
 */
public class Popcorn {
    private static Popcorn instance = new Popcorn();

    public static Popcorn getInstance() {
        return instance;
    }

    /**
     * 开
     */
    public void on() {
        System.out.println("Popcorn on");
    }

    /**
     * 关
     */
    public void off() {
        System.out.println("Popcorn off");
    }

    /**
     * 崩
     */
    public void pop() {
        System.out.println("Popcorn pop");
    }
}
